import request from "@/utils/request";

/**查询分红池用户 */
export function getSvipPage(params) {
  return request({
    url: "/admin/ShareOutBonus/getSvipPage",
    method: "get",
    params,
  });
}

/**根据用户id查询用户分红记录 */
export function getUserShareOutBonusPage(params) {
  return request({
    url: "/admin/ShareOutBonus/getUserShareOutBonusPage",
    method: "get",
    params,
  });
}

/**查询选择的用户 */
export function userList(params) {
  return request({
    url: "/admin/user/list",
    method: "get",
    params,
  });
}

/**新增/删除分红池用户 */
export function userAdd(data) {
  return request({
    url: "/admin/user",
    method: "put",
    data,
  });
}

/**新增/删除分红池用户 */
export function updateUser(data) {
  return request({
    url: "/admin/user/updateUser",
    method: "post",
    data,
  });
}

export function updateBonusStatus(data) {
  return request({
    url: "/admin/ShareOutBonus/updateBonusStatus",
    method: "post",
    data,
  });
}
